﻿using Abp.Application.Services.Dto;
using System;

namespace Camc.Quality.Bom.Dto
{
   public class BomDesignDetailDto : FullAuditedEntityDto<Guid>
    {
        /// <summary>
        /// bom主表id
        /// </summary>
        public Guid BomDesignId { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public Guid MaterialId { get; set; }
        /// <summary>
        /// 父级物料id
        /// </summary>
        public Guid ParentMaterialId { get; set; }
        /// <summary>
        /// 父级id
        /// </summary>
        public Guid ParentId { get; set; }

        /// <summary>
        ///单位1BOM用量=单位净用量/(1-损耗率）
        /// </summary>
        public int Unit1BomDosage { get; set; }
        /// <summary>
        /// 层级关系
        /// </summary>
        public string LevelRelationship { get; set; }
        /// <summary>
        /// 层级
        /// </summary>
        public string LevelNum { get; set; }
        /// <summary>
        /// 前端递归用
        /// </summary>
        public int SonLevel { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 物料属性
        /// </summary>
        public int MaterialProperty { get; set; }
        /// <summary>
        /// 组件下的零件总用量
        /// </summary>
        public decimal BomDosageTotalAmount { get; set; }
        public Guid? Btid { get; set; }

        public string MyProperty { get; set; }

        /// <summary>
        /// 年代号
        /// </summary>
        public string YearsNo { get; set; }

        //public string MyProperty { get; set; }
    }
}
